package com.jzh.service;

import com.jzh.entity.PageResult;
import com.jzh.entity.QueryPageBean;
import com.jzh.pojo.Role;

import java.util.List;

/**
 *  角色接口
 * @author jzh971018
 */
public interface RoleService {
    PageResult pageQuery(QueryPageBean queryPageBean);

    Role findById(Integer id);

    List<Integer> findPermissionIdsByRoleId(Integer id);

    void edit(Role role, Integer[] permissionIds);

    void add(Role role, Integer[] permissionIds);

    void deleteById(Integer id);

    List<Role> findAll();
}
